package in.iqing.module.download;

import com.lidroid.xutils.db.annotation.Column;
import com.lidroid.xutils.db.annotation.Id;
import com.lidroid.xutils.db.annotation.NoAutoIncrement;
import com.lidroid.xutils.db.annotation.Table;

import java.io.Serializable;

/**
 * Created by ZuoShu on 2015/7/16.
 */
@Table(name = "chapter_task")
public class ChapterTask implements Serializable {
    @Id
    @NoAutoIncrement
    @Column(column = "chapter_id")
    private int chapterId;

    @Column(column = "book_id")
    private int bookId;

    @Column(column = "volume_id")
    private int volumeId;

    // content count
    @Column(column = "total_count")
    private int totalCount;

    @Column(column = "finish_count")
    private int finishCount;

    public int getChapterId() {
        return chapterId;
    }

    public void setChapterId(int chapterId) {
        this.chapterId = chapterId;
    }

    public int getBookId() {
        return bookId;
    }

    public void setBookId(int bookId) {
        this.bookId = bookId;
    }

    public int getVolumeId() {
        return volumeId;
    }

    public void setVolumeId(int volumeId) {
        this.volumeId = volumeId;
    }

    public int getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(int totalCount) {
        this.totalCount = totalCount;
    }

    public int getFinishCount() {
        return finishCount;
    }

    public void setFinishCount(int finishCount) {
        this.finishCount = finishCount;
    }

    @Override
    public String toString() {
        return "ChapterTask{" +
                "chapterId=" + chapterId +
                ", bookId=" + bookId +
                ", volumeId=" + volumeId +
                ", totalCount=" + totalCount +
                ", finishCount=" + finishCount +
                '}';
    }
}
